﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
	public class ExamClassEducation
	{
		public ExamClassEducation()
		{
			m_RID = 0;
			m_ExamID = 0;
			m_ClassID = 0;
			m_SchoolMark = null;
			m_Status = 0;

		}

		#region RID
		
		private int m_RID;
		
		public int RID
		{
			get { return m_RID; }
			set { m_RID = value; }
		}
		
		#endregion
		
		#region ExamID
		
		private int m_ExamID;
		
		public int ExamID
		{
			get { return m_ExamID; }
			set { m_ExamID = value; }
		}
		
		#endregion
		
		#region ClassID
		
		private int m_ClassID;
		
		public int ClassID
		{
			get { return m_ClassID; }
			set { m_ClassID = value; }
		}
		
		#endregion
		
		#region SchoolMark
		
		private string m_SchoolMark;
		
		public string SchoolMark
		{
			get { return m_SchoolMark; }
			set { m_SchoolMark = value; }
		}
		
		#endregion
		
		#region Status
		
		private int m_Status;
		
		public int Status
		{
			get { return m_Status; }
			set { m_Status = value; }
		}
		
		#endregion
		

		
		#region Rewrite Equals and HashCode
		
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != GetType() ) ) return false;
			ExamClassEducation castObj = (ExamClassEducation) obj;
			return ( castObj != null )
 && m_RID == castObj.RID;		}
		
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 34;
			hash = hash * 34
 * m_RID.GetHashCode();			return hash;
		}
		
		#endregion
		
		
	}
}